package com.wjw.mapper;

import com.wjw.model.Ancillary_facilities_table;
import com.wjw.model.Road_basic_table;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface AncillaryFacilitiesTableMapper {
    List<Ancillary_facilities_table> findAll();
    List<Ancillary_facilities_table> findByPage(@Param("page") int page, @Param("limit") int limit);
    int add(Ancillary_facilities_table ancillary_facilities_table);
    int delete(int id);
    int change(Ancillary_facilities_table ancillary_facilities_table);
    Road_basic_table findRoadByName(String name);
    Road_basic_table findRoadById(int id);
}
